#Include <FindText>

t1:=A_TickCount, Text:=X:=Y:=""

Text:="|<>*145$56.98UE7oE402+k415A1U1sUzyJK7zUFz80ZJ108Dk001J0E2EYUzzJzY0Y980E5J1zsDm0Y1pEE20YUFyAG4008Q6E2YG013gno15mU0Ew3XzkME0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020Tw0UDzU0U417zkU87ztzl0EE008UE4+u4F0447z4gH4EHXUU0QGxz58YTyPwN0U1MAYU00E80Q6F8W07y0708W8U10V6AAEXzVk8K0sNk004S2"

;if (ok:=FindText(&X, &Y, 873-150000, 489-150000, 873+150000, 489+150000, 0, 0, Text))
;{
;  ; FindText().Click(X, Y, "L")
;}

ok:=FindText(&X:="wait", &Y:=3, 0,0,0,0,0,0,Text)  ; 等待3秒等图像出现
; ok:=FindText(&X:="wait0", &Y:=-1, 0,0,0,0,0,0,Text)  ; 无限等待等图像消失

;MsgBox X . ',' . Y
;MouseClick "right", 200, 300
Click X, Y, "Left"
;Click 100, 200, "Right"
;东方财富终端
;ahk_class Afx:005E0000:8:00010005:00000000:00893435
;ahk_exe maintrade.exe
;ahk_pid 15216
;ahk_id 206346

handle := WinExist("东方财富终端")
MsgBox handle
